<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>理财方案</title>
    <meta charset="UTF-8">
    <link type="text/css" rel="stylesheet" href="css/bootstrap.css">
    <link type="text/css" rel="stylesheet" href="css/bootstrap-theme.css">
    <link type="text/css" rel="stylesheet" href="css/common.css">
    <link type="text/css" rel="stylesheet" href="css/fund_schema.css">

</head>
<body>
<!-- 导航条 -->
<div class="container">
    <div class="panel navbar navbar-inverse" style="margin-bottom: 0;">
        <div class="navbar-header" style="margin-right: 100px;">
            <img src="img/logo.jpg" class="logo">
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="dropdown">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="./project.html">来投资 <span class="caret"></span></a>
                    <ul role="menu" class="dropdown-menu">
                        <li><a href="./project.html">项目投标</a></li>
                        <li><a href="./fund.html">基金交易</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="./reg.html">来理财 <span class="caret"></span></a>
                    <ul role="menu" class="dropdown-menu">
                        <li><a href="./question.html">风险测评</a></li>
                        <li><a href="./member.html">理财会员</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="./blog.html">来了解 <span class="caret"></span></a>
                    <ul role="menu" class="dropdown-menu">
                        <li><a href="./blog.html">全部</a></li>
                        <li><a href="./blog.html">理财知识</a></li>
                        <li><a href="./blog.html">金融市场</a></li>
                        <li><a href="./blog.html">财经资讯</a></li>
                        <li><a href="./blog.html">投资技巧</a></li>
                        <li><a href="./blog.html">生活享受</a></li>
                    </ul>
                </li>
                <li><a href="#">来扎堆</a></li>
            </ul>
            <div class="navbar-form navbar-right">
                <a href="#" class="btn"><img src="img/btn_login.png"></a>
                <a href="./reg.html" class="btn"><img src="img/btn_regist.png"></a>
            </div>
        </div>
    </div>
</div>

<div class="container" role="main">
    <div class="panel-padding">
        <div class="panel-title-bar">
            <div class="panel-title"><span>我的理财方案：</span><span data-bind="text: portfolioName">安全型</span>
            </div>
        </div>
        <div class="panel-bar-s">
            <dl class="ispan11">
                <dt>投资金额：</dt>
                <dd data-bind="text: asset() + '万'">30万</dd>
                <dt>投资期限：</dt>
                <dd data-bind="text: period() + '个月'">3个月</dd>
            </dl>
            <div class="ispan1"><a class="pil_bid_btn" href="#question-form" id="question-button" style="margin: 7px 10px 0 0">重新定制</a>
            </div>
        </div>
        <div class="panel-inner">
            <div class="row">
                <div class="span3">
                    <div class="portfolio-chart" id="portfolio"><svg height="250" version="1.1" width="253" xmlns="http://www.w3.org/2000/svg" style="overflow: hidden; position: relative; left: -0.5px; top: -0.800003px;"><desc>Created with Raphaël 2.1.2</desc><defs/><path style="" fill="#ec830a" stroke="#ffffff" d="M130,120L130,40A80,80,0,1,1,124.97675843765494,40.15786172573827Z" stroke-width="NaN" transform="matrix(1.1,0,0,1.1,-12.687,-2.0049)"/><path style="" fill="none" stroke="#ec830a" d="M132.51286072625027,199.96052482925853L132.7641467988753,207.95657731218438H218" stroke-width="1px"/><text style="text-anchor: start; font: 15px Trebuchet MS;" x="218" y="207.95657731218438" text-anchor="start" font="10px &quot;Arial&quot;" stroke="none" fill="#ec830a" font-size="15px" font-family="Trebuchet MS"><tspan dy="5.500003825856254">100%</tspan></text></svg></div>
                    <p class="chart-annotation">全额配比分析图</p>
                </div>
                <div class="span9-omega margin-top-m">
                    <div class="row">
                        <div class="pull-right" style="width:80%">
                            <!-- ko template: {name: 'portfolio-product-table', data: dataTable}-->
                            <table class="product-table">
                                <thead>
                                    <tr data-bind="foreach: columns">
                                        <!-- ko if: sortable-->
                                        <th data-bind="attr:{colspan: colspan}" colspan="3"><a class="unstyled" data-bind="click: $parent.sortHandler" href="#"><span data-bind="text:name">名称</span>
                                            <div class="updown">
                                                <div class="up" data-bind="css:{active: $parent.sortedColumn().column == $data &amp;&amp; $parent.sortedColumn().order == 'asc'}"></div>
                                                <div class="down" data-bind="css:{active: $parent.sortedColumn().column == $data &amp;&amp; $parent.sortedColumn().order == 'dsc'}"></div>
                                            </div></a>
                                        </th>
                                        <!-- /ko-->
                                        <!-- ko if: !sortable--><!-- /ko-->

                                        <!-- ko if: sortable-->
                                        <th data-bind="attr:{colspan: colspan}" colspan="2"><a class="unstyled" data-bind="click: $parent.sortHandler" href="#"><span data-bind="text:name">七日年化利率</span>
                                            <div class="updown">
                                                <div class="up" data-bind="css:{active: $parent.sortedColumn().column == $data &amp;&amp; $parent.sortedColumn().order == 'asc'}"></div>
                                                <div class="down" data-bind="css:{active: $parent.sortedColumn().column == $data &amp;&amp; $parent.sortedColumn().order == 'dsc'}"></div>
                                            </div></a>
                                        </th>
                                        <!-- /ko-->
                                        <!-- ko if: !sortable--><!-- /ko-->

                                        <!-- ko if: sortable-->
                                        <th data-bind="attr:{colspan: colspan}" colspan="2"><a class="unstyled" data-bind="click: $parent.sortHandler" href="#"><span data-bind="text:name">近一月收益率</span>
                                            <div class="updown">
                                                <div class="up" data-bind="css:{active: $parent.sortedColumn().column == $data &amp;&amp; $parent.sortedColumn().order == 'asc'}"></div>
                                                <div class="down" data-bind="css:{active: $parent.sortedColumn().column == $data &amp;&amp; $parent.sortedColumn().order == 'dsc'}"></div>
                                            </div></a>
                                        </th>
                                        <!-- /ko-->
                                        <!-- ko if: !sortable--><!-- /ko-->

                                        <!-- ko if: sortable-->
                                        <th data-bind="attr:{colspan: colspan}" colspan="2"><a class="unstyled" data-bind="click: $parent.sortHandler" href="#"><span data-bind="text:name">起购金额(元)</span>
                                            <div class="updown">
                                                <div class="up" data-bind="css:{active: $parent.sortedColumn().column == $data &amp;&amp; $parent.sortedColumn().order == 'asc'}"></div>
                                                <div class="down" data-bind="css:{active: $parent.sortedColumn().column == $data &amp;&amp; $parent.sortedColumn().order == 'dsc'}"></div>
                                            </div></a>
                                        </th>
                                        <!-- /ko-->
                                        <!-- ko if: !sortable--><!-- /ko-->

                                        <!-- ko if: sortable--><!-- /ko-->
                                        <!-- ko if: !sortable-->
                                        <th data-bind="attr:{colspan: colspan}, html: name" colspan="1">购买</th>
                                        <!-- /ko-->

                                        <!-- ko if: sortable--><!-- /ko-->
                                        <!-- ko if: !sortable-->
                                        <th data-bind="attr:{colspan: colspan}, html: name" colspan="1">收藏</th>
                                        <!-- /ko-->
                                    </tr>
                                </thead>
                                <tbody data-bind="foreach: {data: data, as:'item'}">
                                    <tr data-bind="foreach: $parent.columns">
                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="3"><a href="/fund/detail/676" target="_blank" class="blue">鑫元货币A</a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">3.88%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">0.370105%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">100</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a target="_blank" href="/shumi/oauth/check_oauth_status/?fund_code=000483&amp;action=purchase" class="button button-mini button-pink"> 购买 </a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a data-id="676" data-is-favorited="undefined" href="#" onclick="addToFavorite(event,'funds');" class="button button-mini button-white">收藏</a></td>
                                    </tr>

                                    <tr data-bind="foreach: $parent.columns">
                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="3"><a href="/fund/detail/690" target="_blank" class="blue">中加货币A</a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">4.137%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">0.352435%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">100</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a target="_blank" href="/shumi/oauth/check_oauth_status/?fund_code=000331&amp;action=purchase" class="button button-mini button-pink"> 购买 </a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a data-id="690" data-is-favorited="undefined" href="#" onclick="addToFavorite(event,'funds');" class="button button-mini button-white">收藏</a></td>
                                    </tr>

                                    <tr data-bind="foreach: $parent.columns">
                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="3"><a href="/fund/detail/754" target="_blank" class="blue">南方现金增利货币A</a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">4.356%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">0.374708%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">100</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a target="_blank" href="/shumi/oauth/check_oauth_status/?fund_code=202301&amp;action=purchase" class="button button-mini button-pink"> 购买 </a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a data-id="754" data-is-favorited="undefined" href="#" onclick="addToFavorite(event,'funds');" class="button button-mini button-white">收藏</a></td>
                                    </tr>

                                    <tr data-bind="foreach: $parent.columns">
                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="3"><a href="/fund/detail/758" target="_blank" class="blue">安信现金货币A</a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">3.932%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">0.36905%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">1000</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a target="_blank" href="/shumi/oauth/check_oauth_status/?fund_code=750006&amp;action=purchase" class="button button-mini button-pink"> 购买 </a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a data-id="758" data-is-favorited="undefined" href="#" onclick="addToFavorite(event,'funds');" class="button button-mini button-white">收藏</a></td>
                                    </tr>

                                    <tr data-bind="foreach: $parent.columns">
                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="3"><a href="/fund/detail/773" target="_blank" class="blue">中欧货币A</a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">3.888%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">0.44378%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">100</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a target="_blank" href="/shumi/oauth/check_oauth_status/?fund_code=166014&amp;action=purchase" class="button button-mini button-pink"> 购买 </a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a data-id="773" data-is-favorited="undefined" href="#" onclick="addToFavorite(event,'funds');" class="button button-mini button-white">收藏</a></td>
                                    </tr>

                                    <tr data-bind="foreach: $parent.columns">
                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="3"><a href="/fund/detail/778" target="_blank" class="blue">长盛货币</a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">4.108%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">0.326527%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">1000</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a target="_blank" href="/shumi/oauth/check_oauth_status/?fund_code=080011&amp;action=purchase" class="button button-mini button-pink"> 购买 </a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a data-id="778" data-is-favorited="undefined" href="#" onclick="addToFavorite(event,'funds');" class="button button-mini button-white">收藏</a></td>
                                    </tr>

                                    <tr data-bind="foreach: $parent.columns">
                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="3"><a href="/fund/detail/783" target="_blank" class="blue">农银货币A</a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">5.006%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">0.37192%</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="2">100</td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a target="_blank" href="/shumi/oauth/check_oauth_status/?fund_code=660007&amp;action=purchase" class="button button-mini button-pink"> 购买 </a></td>

                                        <td data-bind="attr:{colspan: colspan}, html: text(item, $parentContext.$index())" colspan="1"><a data-id="783" data-is-favorited="undefined" href="#" onclick="addToFavorite(event,'funds');" class="button button-mini button-white">收藏</a></td>
                                    </tr>
                                </tbody>
                            </table>
                            <!-- /ko-->
                        </div>
                        <div class="pull-left" style="width:20%">
                            <ul data-bind="foreach: productTypes()" class="list-unstyled">
                                <li class="product-tab active" data-bind="css:{active: $data.productType == $root.productsType()}"><span class="icon-color" data-bind="style:{background: color}" style="background: none repeat scroll 0% 0% rgb(236, 131, 10);"></span><a class="product-tabs--cash" data-bind="text: productType, click:$root.selectProduct" href="#">货币基金</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="well-s"><a class="join_now_btn pull-right" data-bind="click: savePortfolio" href="#" id="savePortfolio">保存我的投资方案</a>
                </div>
            </div>
        </div>
        <div class="panel-title-bar">
            <div class="panel-title">收益预览</div>
        </div>
        <div class="panel-bar-s">以下为该方案，您未来三个月的收益预览</div>
        <div class="row margin-top-m">
            <div class="span6">
                <table class="portfolio-income-table">
                    <thead>
                        <tr>
                            <th>类型</th>
                            <th>5月</th>
                            <th>6月</th>
                            <th>7月</th>
                        </tr>
                    </thead>
                    <tbody data-bind="foreach: productTypes()">
                        <tr>
                            <td data-bind="text: productType">货币基金</td>
                            <td data-bind="text: Math.floor($root.asset() * $data.percent / 100 * $data.earning_rate / 100 / 12 * 10000)">1250</td>
                            <td data-bind="text: Math.floor($root.asset() * $data.percent / 100 * $data.earning_rate / 100 / 12 * 2 * 10000)">2500</td>
                            <td data-bind="text: Math.floor($root.asset() * $data.percent / 100 * $data.earning_rate / 100 / 12 * 3 * 10000)">3750</td>
                        </tr>
                    </tbody>
                </table>
                <div class="row padding-s" style="padding: 10px;"><span class="glyphicon glyphicon-info-sign"></span><span> 该数据为新橘宝根据目前收益预测数据，仅供参考</span>
                </div>
            </div>
            <div class="span6-omega">
                <div class="earning-rate-panel" style="position: relative">
                    <div class="huoqi">
                        <p style="position: relative; top: -20px; text-align:center">活期</p>
                    </div>
                    <div class="wanglibao-bar" data-bind="style: {height: timesBankRate() * 5 + 'px'}" style="height: 70px;">
                        <p style="position: relative; top: -20px; text-align:center">新橘宝</p>
                    </div>
                    <div class="earning-rate-content">
                        <p>是银行活期存款收益的<span class="numberpad" data-bind="text: Math.floor((timesBankRate()/10))">1</span><span class="numberpad" data-bind="text: timesBankRate()%10">4</span>倍
                        </p>
                        <p>该方案预期年收益<span class="earning-text" data-bind="text: Math.floor(portfolioEarningRate() / 100 * asset() * 10000)">15000</span>元
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 底部 -->
<div class="container">
    <div class="panel footer panel-body" style="background-color: #303133;margin: 0">
        <div class="row panel-body" style="padding: 0">
            <div class="col-sm-3">
                <span style="margin-right: 60px;">版权所有 &copy; xxxxxxxxxxxxxxxxx</span>
            </div>
            <div class="col-lg-2" style="padding-left: 0;padding-right: 0">
                <span>全国服务热线：4001 8888 88</span>
            </div>
            <div class="col-sm-7 text-right">
                <span>注册新橘财富</span>
                <label>邮箱：<input type="text"></label>
                <label>密码：<input type="text"></label>
                <a href="./reg.html" style="margin-left: 15px;"><img src="img/regist.jpg"></a>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="js/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/echarts-plain.js"></script>
</body>
</html>
